﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EntitiesContainer.Entities;

namespace DAL.Context
{
   public class WebStoreContext : DbContext, IDbContext
    {
       public WebStoreContext()
           : base("Data Source=STUDENT01-GIS;Initial Catalog=Webstore;Integrated Security=True")
        {
            Database.SetInitializer<WebStoreContext>(new WebStoreContextInitialization());
        }
        public DbSet<User> Users { get; set; }
        public DbSet<Product> Products { get; set; }
        public DbSet<ProductCategory> ProductCategories { get; set; }
    }
}
